package com.zl.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author zhanglei2
 * @since 2019/12/11 17:49
 */
@Controller
public class PageController {
//    跳转到仪表板
    @RequestMapping(value = "/dashboard.html",method = RequestMethod.GET)
    public String userLogin(){
        return "dashboard";
    }
//    跳转到list
    @RequestMapping("/list")
    public String showList(){
        return "list";
    }
    @RequestMapping("/add")
    public String showAdd(){
        return "add";
    }
}
